package com.stylefeng.guns.modular.platform.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.stylefeng.guns.common.constant.Enum.SellerAuditStatusEnum;
import com.stylefeng.guns.common.constant.Enum.SellerStatusEnum;

/**
 * <p>
 * 平台卖家需求
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-13
 */
@TableName("platform_seller_demand")
public class SellerDemand extends Model<SellerDemand> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Integer id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * appId
     */
    @TableField("app_id")
    private String appId;
    /**
     * 小程序appSecret
     */
    @TableField("app_secret")
    private String appSecret;
    /**
     * 流量类型
     */
    @TableField("flow_type")
    private String flowType;
    /**
     * 开始时间
     */
    @TableField("start_time")
    private String startTime;
    /**
     * 结束时间
     */
    @TableField("end_time")
    private String endTime;
    /**
     * 备注
     * @return
     */
    @TableField("remarks")
    private String remarks;
    /**
     * 状态(0:待接受,1已接受2已完成)
     */
    private Integer status;
    @TableField(exist = false)
    private String statusName;
    /**
     * 审核状态(0:待审核1审核通过2审核不通过)
     */
    @TableField("audit_status")
    private Integer auditStatus;
    @TableField(exist = false)
    private String auditStatusName;
    /**
     * 创建人
     */
    @TableField("created_by")
    private String createdBy;
    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 更新人
     */
    @TableField("last_updated_by")
    private String lastUpdatedBy;
    /**
     * 更新时间
     */
    @TableField("gmt_last_update")
    private Date gmtLastUpdate;
    /**
     * 小程序名称
     * @return
     */
    @TableField("app_name")
    private String appName;
    /**
     * 原始ID
     * @return
     */
    @TableField("original_id")
    private String originalId;
    /**
     * 小程序二维码url
     * @return
     */
    @TableField("qr_code")
    private String qrCode;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getAppId() {
		return appId;
	}
	public void setAppId(String appId) {
		this.appId = appId;
	}
	public String getAppSecret() {
		return appSecret;
	}
	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}
	public String getFlowType() {
		return flowType;
	}
	public void setFlowType(String flowType) {
		this.flowType = flowType;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getAuditStatus() {
		return auditStatus;
	}
	public void setAuditStatus(Integer auditStatus) {
		this.auditStatus = auditStatus;
	}
	public String getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}
	public Date getGmtCreate() {
		return gmtCreate;
	}
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	public String getLastUpdatedBy() {
		return lastUpdatedBy;
	}
	public void setLastUpdatedBy(String lastUpdatedBy) {
		this.lastUpdatedBy = lastUpdatedBy;
	}
	public Date getGmtLastUpdate() {
		return gmtLastUpdate;
	}
	public void setGmtLastUpdate(Date gmtLastUpdate) {
		this.gmtLastUpdate = gmtLastUpdate;
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getOriginalId() {
		return originalId;
	}
	public void setOriginalId(String originalId) {
		this.originalId = originalId;
	}
	public String getQrCode() {
		return qrCode;
	}
	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}
	
	public String getStatusName() {
		return SellerStatusEnum.getDesc(this.status);
	}
	public void setStatusName(String statusName) {
		this.statusName = SellerStatusEnum.getDesc(this.status);
	}
	public String getAuditStatusName() {
		return SellerAuditStatusEnum.getDesc(this.auditStatus);
	}
	public void setAuditStatusName(String auditStatusName) {
		this.auditStatusName = SellerAuditStatusEnum.getDesc(this.auditStatus);
	}
	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}
